package com.cjm.one.common.utils;

import com.alibaba.ttl.TransmittableThreadLocal;
import com.cjm.one.model.custom.entity.CustomerInfo;
import com.cjm.one.model.system.entity.SysUserInfo;
import lombok.extern.slf4j.Slf4j;

@Slf4j
public class AuthCustomerContextHolder {
    private final static TransmittableThreadLocal<CustomerInfo> authContextCustomer = new TransmittableThreadLocal<>();
    public static CustomerInfo getAuthContextCustomer() {
        CustomerInfo customerInfo = authContextCustomer.get();
        return customerInfo;
    }
    public static void setAuthContextCustomer(CustomerInfo customerInfo) {
        authContextCustomer.set(customerInfo);
    }
}
